/* 响应式布局样式 */
/* 大屏幕 (桌面) */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

/* 中等屏幕 (平板) */
@media (max-width: 992px) {
    .features {
        flex-direction: column;
    }

    .feature-card {
        margin: 15px 0;
    }

    .stats-container {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 0 0 calc(50% - 30px);
        margin-bottom: 20px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-right {
        left: 0;
    }
}

/* 小屏幕 (手机横屏) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .track-form {
        flex-direction: column;
    }

    .track-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .track-form button {
        border-radius: 4px;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 15px;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-menu li {
        margin: 5px;
    }

    .sidebar-menu li a {
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .sidebar-menu li a:hover,
    .sidebar-menu li a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }

    .content-area {
        margin-left: 0;
        padding: 15px;
    }

    .stat-card {
        flex: 0 0 100%;
    }
}

/* 超小屏幕 (手机竖屏) */
@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .auth-container {
        padding: 20px;
        margin: 30px auto;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 15px;
    }

    .table th,
    .table td {
        padding: 8px;
        font-size: 0.85rem;
    }
}